/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bancoDeDados;

import java.sql.SQLException;
import regraDeNegocio.RNNotaFiscal;

/**
 *
 * @author Gean
 */
public class BDNotaFiscal {
   
    public void insertBD(RNNotaFiscal nf) throws SQLException{
        Conexao c = new Conexao();        
        c.insert("INSERT INTO notafiscal (numnotafiscal, numempenho, dtemissao, valortotal, cnpj) VALUES ('"+nf.getNumero()+"','"+
                nf.getNumeroDeEmpenho()+"','"+nf.getDataEmissao()+"','"+nf.getValorTotal()+"','"+nf.getFornecedor()+"')");
    }
}
